package org.qydjk.common.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "s_role", catalog = "qydjk")
public class SRole implements java.io.Serializable {
	private static final long serialVersionUID = 3483899522349774001L;
	private Integer id;
	private String name;
	private Integer seq;
	private String description;
	private Integer status;

	// Constructors

	/** default constructor */
	public SRole() {
	}

	/** minimal constructor */
	public SRole(String name, Integer seq, Integer status) {
		this.name = name;
		this.seq = seq;
		this.status = status;
	}

	/** full constructor */
	public SRole(String name, Integer seq, String description, Integer status) {
		this.name = name;
		this.seq = seq;
		this.description = description;
		this.status = status;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name", nullable = false, length = 64)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "seq", nullable = false)
	public Integer getSeq() {
		return this.seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	@Column(name = "description")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "status", nullable = false)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}